Ext.define('PCD.view.pcd.PcdEdit', {
    extend: 'Ext.window.Window',
    xtype : 'pcdedit',

    requires: ['Ext.form.Panel'],

    title:"派车单编辑",
    layout:"fit",
    autoshow:true,
    width:320,
    height:500,
    resizable:false,
    closeAction: 'hide',

    initComponent: function() {
    	this.items = [{
    		xtype:"form",
    		padding:"5 5 0 5",
    		border:false,
    		style:"background-color: #fff;",

    		items:[{
    			xtype:"textfield",
    			name:"id",
    			fieldLabel:"编号",
                disabled:true
    		},{
    			xtype:"textfield",
    			name:"name",
    			fieldLabel:"申请人"
    		},{
    			xtype:"textfield",
    			name:"bumen",
    			fieldLabel:"部门"
    		},{
                xtype:"datefield",
                name:"stime",
                fieldLabel:"预计开始时间",
                minValue:new Date()
            },{
                xtype:"datefield",
                name:"otime",
                fieldLabel:"预计返回时间",
                minValue:new Date()
            },{
                xtype:"textfield",
                name:"shiyou",
                fieldLabel:"用车事由"
            },{
                xtype:"textfield",
                name:"tongxing",
                fieldLabel:"同行人员"
            },{
                xtype:"textfield",
                name:"mudi",
                fieldLabel:"目的地"
            },{
                xtype:"datefield",
                name:"sjtime",
                fieldLabel:"实际开始时间",
                minValue:new Date()
            },{
                xtype:"datefield",
                name:"likai",
                fieldLabel:"实际返回时间",
                minValue:new Date()
            },{
                xtype:"textfield",
                name:"jiashiyuan",
                fieldLabel:"驾驶员"
            },{
                xtype:"textfield",
                name:"tel",
                fieldLabel:"驾驶员手机"
            },{
                xtype:"textfield",
                name:"shenpi",
                fieldLabel:"领导签字"
            },{
                xtype:"textfield",
                name:"beian",
                fieldLabel:"局办备案"
            },{
                xtype:"datefield",
                name:"sqtime",
                fieldLabel:"申请时间",
                minValue:new Date()
            },{
                xtype:"textfield",
                name:"zt",
                fieldLabel:"流程状态"
            }]
    	}];

    	this.buttons = [{
    		text: "更新",
    		action:"apply"
    	},{
            text: "删除",
            action:"delete"
        },{
            text: "取消",
            scope: this,
            handler: this.hide
        }];

        this.callParent(arguments);
    }
});